package org.dromara.basedata.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.basedata.domain.ProductInfo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 产品信息维护视图对象 product_info
 *
 * @author Lion Li
 * @date 2025-06-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ProductInfo.class)
public class ProductInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 产品唯一标识
     */
    @ExcelProperty(value = "产品唯一标识")
    private Long id;

    /**
     * 产品大类ID
     */
    @ExcelProperty(value = "产品大类ID")
    private Long productCategoryId;

    /**
     * 产品大类名称
     */
    @ExcelProperty(value = "产品大类名称")
    private String productCategoryName;

    /**
     * 材料名称
     */
    @ExcelProperty(value = "材料名称")
    private String materialName;

    /**
     * 规格型号
     */
    @ExcelProperty(value = "规格型号")
    private String specificationModel;

    /**
     * 材质
     */
    @ExcelProperty(value = "材质")
    private String materialType;

    /**
     * 单位（个、台、件）
     */
    @ExcelProperty(value = "单位", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "个=、台、件")
    private String unit;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Long quantity;

    /**
     * 单重
     */
    @ExcelProperty(value = "单重")
    private Long singleWeight;

    /**
     * 总重
     */
    @ExcelProperty(value = "总重")
    private Long totalWeight;

    /**
     * 结构属性
     */
    @ExcelProperty(value = "结构属性")
    private String structuralAttributes;

    /**
     * 制造工艺
     */
    @ExcelProperty(value = "制造工艺")
    private String manufacturingProcess;

    /**
     * 是否外协或外购
     */
    @ExcelProperty(value = "是否外协或外购", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private Long isOutsourced;

    /**
     * 检验或试验
     */
    @ExcelProperty(value = "检验或试验")
    private String inspectionOrTesting;

    /**
     * 相关标准
     */
    @ExcelProperty(value = "相关标准")
    private String relevantStandards;

    /**
     * 产品图片
     */
    @ExcelProperty(value = "产品图片")
    private String productImage;

    /**
     * 创建单位
     */
    @ExcelProperty(value = "创建单位")
    private Long createDept;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createBy;


}
